﻿namespace fCloud.SensorApi.Models;

//定义分页响应类
public class PagedResult<T>
{
    public IEnumerable<T> Data { get; set; }
    public int TotalCount { get; set; }
    public int PageNumber { get; set; }
    public int PageSize { get; set; }
    public int TotalPages => (int)Math.Ceiling(TotalCount / (double)PageSize);
}

public class PagedCommonApiResponse<T> : CommonApiResponse
{
    public new PagedResult<T> Data { get; set; }
}
